package com.ftg.learn.day16.myself;

/**
 * @author 布衣
 */
public class MainPlay {

    public static void main(String[] args) {

//        我怎么知道你用哪些类
        String path = "D:\\javaworkspace\\LearnJava2402\\LearnJava2402\\src\\main\\java\\com\\ftg\\learn\\day16\\beans.xml";
        SpringIocContainer beans = new SpringIocContainer(path);
        beans.read();

        Pig p = (Pig) beans.getBean("tt");

        System.out.println(p.getName());
        Pig p1 = (Pig) beans.getBean("pig1");
        System.out.println(p1.getName());

    }

}
